package com.shenzhen.group.niuniu.play;

import com.shenzhen.group.common.player.Player;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;

/**
 * 牛牛玩家
 * @author 周赛波
 * @version v1.0.0
 * @date 2021/12/26 2:28
 */
public class NiuniuPlayer {
    public static List<Player> getPlayers() {
        AtomicLong atomicInteger = new AtomicLong(1);
        List<Player> list = new ArrayList<>();
        list.add(Player.builder().name("001").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("002").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("003").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("004").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("005").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("006").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        list.add(Player.builder().name("007").id(atomicInteger.getAndIncrement()).balance(new BigDecimal(10000)).build());
        return list;
    }

    public static void play() {
        int i = 0;
        NiuniuGame niuniuGame = new NiuniuGame(100);
        niuniuGame.process();
    }


}
